<?php if( $sf_user->isAuthenticated() ): ?>
    <div class="naujiena"><?php echo link_to(image_tag('note_edit.png', 'style="border:0px;"'), 'textmodule/edit?id=' . $page->getId()); ?></div>
<?php endif;?>

<div class="naujiena"><?php echo $path; ?></div>

<div class="title"><?php echo $page->getName();?></div>

<div class="naujiena">
    <?php echo $page; ?>
</div>


<?php if( $sf_user->isAuthenticated() ): ?>
    <div class="naujiena"><?php echo link_to(image_tag('note_edit.png', 'style="border:0px;"'), 'textmodule/edit?id=' . $page->getId()); ?></div>
<?php endif;?>